.class Lcom/xingbook/park/fragment/e;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/xingbook/park/fragment/HomeGroupFragment;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/park/fragment/e;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7

    const/4 v3, 0x0

    const/4 v6, 0x1

    iget-object v0, p0, Lcom/xingbook/park/fragment/e;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/fragment/HomeGroupFragment;

    if-nez v0, :cond_0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    check-cast v1, Lcom/xingbook/park/activity/HomeActivity;

    if-nez v1, :cond_1

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto :goto_0

    :cond_1
    iget v2, p1, Landroid/os/Message;->what:I

    packed-switch v2, :pswitch_data_0

    :cond_2
    :goto_1
    :pswitch_0
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto :goto_0

    :pswitch_1
    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->b(Lcom/xingbook/park/fragment/HomeGroupFragment;)Lcom/fortysevendeg/swipelistview/SwipeListView;

    move-result-object v1

    invoke-virtual {v1, v3}, Lcom/fortysevendeg/swipelistview/SwipeListView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->d(Lcom/xingbook/park/fragment/HomeGroupFragment;)Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    goto :goto_1

    :pswitch_2
    const-string v2, "!-_-\u7531\u4e8e\u7f51\u7edc\u539f\u56e0\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u540e\u91cd\u8bd5\uff01"

    invoke-virtual {v1, v0, v2}, Lcom/xingbook/park/activity/HomeActivity;->a(Lcom/xingbook/park/fragment/r;Ljava/lang/String;)V

    goto :goto_1

    :pswitch_3
    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->e(Lcom/xingbook/park/fragment/HomeGroupFragment;)V

    invoke-virtual {v1, v0}, Lcom/xingbook/park/activity/HomeActivity;->b(Lcom/xingbook/park/fragment/r;)V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    if-eqz v0, :cond_2

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    invoke-static {v1, v0, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_1

    :pswitch_4
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "\u5708\u5b50\u6570\u636e\u83b7\u53d6\u5931\u8d25\uff1a"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v3, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ",\u8f7b\u89e6\u5c4f\u5e55\u91cd\u8bd5\uff01"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Lcom/xingbook/park/activity/HomeActivity;->a(Lcom/xingbook/park/fragment/r;Ljava/lang/String;)V

    goto :goto_1

    :pswitch_5
    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->c(Lcom/xingbook/park/fragment/HomeGroupFragment;)Lcom/xingbook/group/adapter/l;

    move-result-object v2

    invoke-static {}, Lcom/xingbook/group/helper/a;->a()Ljava/util/ArrayList;

    move-result-object v3

    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->f(Lcom/xingbook/park/fragment/HomeGroupFragment;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->b(Lcom/xingbook/park/fragment/HomeGroupFragment;)Lcom/fortysevendeg/swipelistview/SwipeListView;

    move-result-object v5

    invoke-virtual {v2, v3, v4, v5}, Lcom/xingbook/group/adapter/l;->a(Ljava/util/ArrayList;Ljava/util/ArrayList;Landroid/widget/ListView;)V

    invoke-virtual {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->f()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    invoke-static {v1, v0, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_1

    :pswitch_6
    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->c(Lcom/xingbook/park/fragment/HomeGroupFragment;)Lcom/xingbook/group/adapter/l;

    move-result-object v2

    invoke-static {}, Lcom/xingbook/group/helper/a;->a()Ljava/util/ArrayList;

    move-result-object v3

    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->f(Lcom/xingbook/park/fragment/HomeGroupFragment;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->b(Lcom/xingbook/park/fragment/HomeGroupFragment;)Lcom/fortysevendeg/swipelistview/SwipeListView;

    move-result-object v5

    invoke-virtual {v2, v3, v4, v5}, Lcom/xingbook/group/adapter/l;->a(Ljava/util/ArrayList;Ljava/util/ArrayList;Landroid/widget/ListView;)V

    invoke-virtual {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->f()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    invoke-static {v1, v0, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_1

    :pswitch_7
    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->c(Lcom/xingbook/park/fragment/HomeGroupFragment;)Lcom/xingbook/group/adapter/l;

    move-result-object v2

    invoke-static {}, Lcom/xingbook/group/helper/a;->a()Ljava/util/ArrayList;

    move-result-object v3

    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->f(Lcom/xingbook/park/fragment/HomeGroupFragment;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->b(Lcom/xingbook/park/fragment/HomeGroupFragment;)Lcom/fortysevendeg/swipelistview/SwipeListView;

    move-result-object v5

    invoke-virtual {v2, v3, v4, v5}, Lcom/xingbook/group/adapter/l;->a(Ljava/util/ArrayList;Ljava/util/ArrayList;Landroid/widget/ListView;)V

    invoke-virtual {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->f()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    invoke-static {v1, v0, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_1

    :pswitch_8
    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->c(Lcom/xingbook/park/fragment/HomeGroupFragment;)Lcom/xingbook/group/adapter/l;

    move-result-object v2

    invoke-static {}, Lcom/xingbook/group/helper/a;->a()Ljava/util/ArrayList;

    move-result-object v3

    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->f(Lcom/xingbook/park/fragment/HomeGroupFragment;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->b(Lcom/xingbook/park/fragment/HomeGroupFragment;)Lcom/fortysevendeg/swipelistview/SwipeListView;

    move-result-object v5

    invoke-virtual {v2, v3, v4, v5}, Lcom/xingbook/group/adapter/l;->a(Ljava/util/ArrayList;Ljava/util/ArrayList;Landroid/widget/ListView;)V

    invoke-virtual {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->f()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    invoke-static {v1, v0, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_1

    :pswitch_9
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/xingbook/park/fragment/HomeGroupFragment;->a(Lcom/xingbook/park/fragment/HomeGroupFragment;Ljava/lang/String;)V

    goto/16 :goto_1

    :pswitch_a
    invoke-virtual {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->f()V

    goto/16 :goto_1

    :pswitch_b
    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->b(Lcom/xingbook/park/fragment/HomeGroupFragment;)Lcom/fortysevendeg/swipelistview/SwipeListView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/fortysevendeg/swipelistview/SwipeListView;->closeOpenedItems()V

    goto/16 :goto_1

    :pswitch_c
    invoke-static {v0}, Lcom/xingbook/park/fragment/HomeGroupFragment;->e(Lcom/xingbook/park/fragment/HomeGroupFragment;)V

    const-string v0, "\u5934\u50cf\u66f4\u65b0\u5931\u8d25~"

    const/4 v2, 0x0

    invoke-static {v1, v0, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    if-eqz v0, :cond_2

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    invoke-static {v1, v0, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_1

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_3
        :pswitch_4
        :pswitch_2
        :pswitch_c
        :pswitch_5
        :pswitch_6
        :pswitch_7
        :pswitch_8
        :pswitch_9
        :pswitch_a
        :pswitch_0
        :pswitch_b
    .end packed-switch
.end method
